﻿@{
    ViewBag.Title = "GlobalPermission";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<section id="content" role="main">
    <h1 id="admin-page-heading">Global Permissions</h1>
    <div class="content-container">
        <div class="content-body aui-panel">                 
        <table class="jiraform jirapanel  maxWidth">
            <tr>
                <td class="jiraformheader">
                    <a class="help-lnk" href="#" target="_jirahelp">
                        <img src="" width="16" height="16" align="right"  border="0" alt="Get help!"  title="Get online help about Managing Global Permissions"/>
                    </a>
                    <h3 class="formtitle">Global Permissions</h3>
                </td>
            </tr>
            <tr>
                <td class="jiraformbody">
                    <p>
                    These permissions apply to all projects. They are independent of project specific permissions.
                    If you wish to set permissions on a project-by-project basis you can set them up in the <a href="#">Permission Schemes</a>.
                    </p>
                </td>
            </tr>
        </table>
        <h3>
            <a class="help-lnk" href="#" target="_jirahelp">
            <img src="ico_help.png" width="16" height="16" align="right"  border="0" alt="Get help!"  title="Get online help about Managing Project Permissions"/></a>
            JIRA Permissions
        </h3>
        <table id="global_perms" class="aui aui-table-rowhover">
            <thead>
                <tr>
                    <th> Permissions </th>
                    <th style="width: 240px;"> Users / Groups </th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>
                        <h5>JIRA System Administrators</h5>
                        Ability to perform all administration functions. There must be at least one group with this permission.
                        <div class="description"><strong>Note:</strong> People with this permission can always log in to JIRA.</div>
                    </td>
                    <td>
                        <ul class="operations-list">    
                            <li>jira-administrators</li>
                                 <li><a href="#">View Users</a></li>
                                 <li>
                                    <a id="del_44_jira-administrators" href="#">Delete</a>
                                 </li>
                         </ul>
                    </td>
                </tr>
                <tr>
                    <td>
                        <h5>JIRA Administrators</h5>
                        Ability to perform most administration functions (excluding Import & Export, SMTP Configuration, etc.).
                        <div class="description"><strong>Note:</strong> People with this permission can always log in to JIRA.</div>
                    </td>
                    <td>
                        <ul class="operations-list">
                            <li>jira-administrators</li>
                            <li><a href="#">View Users</a></li>
                            <li><a id="del_0_jira-administrators" href="#">Delete</a></li>
                        </ul>
                    </td>
                </tr>
                <tr>
                    <td>
                        <h5>JIRA Users</h5>
                        Ability to log in to JIRA. They are a 'user'.  Any new users created will automatically join these groups, unless those groups have JIRA System Administrators or JIRA Administrators permissions.
                
                        <div class="description"><strong>Note:</strong> All users need this permission to log in to JIRA, even if they have other permissions.</div>
                    </td>
                    <td>
                        <ul class="operations-list">
                            <li>jira-users</li>
                            <li><a href="#">View Users</a></li>
                            <li><a id="del_1_jira-users" href="#">Delete</a></li>
                        </ul>
                    </td>
                </tr>
                <tr>
                    <td>
                        <h5>Browse Users</h5>
                        Ability to select a user or group from a popup window as well as the ability to use the 'share' issues feature. Users with this permission will also be able to see names of all users and groups in the system.
                    </td>
                    <td>
                        <ul class="operations-list">
                            <li>jira-developers</li>
                            <li><a href="#">View Users</a></li>
                            <li><a id="del_27_jira-developers" href="#">Delete</a></li>
                        </ul>
                    </td>
                </tr>
                <tr>
                    <td>
                        <h5>Create Shared Objects</h5>
                        Ability to share dashboards and filters with other users, groups and roles.
                    </td>
                    <td>
                        <ul class="operations-list">
                            <li>jira-users</li>                               
                            <li><a href="#">View Users</a></li>
                            <li><a id="del_22_jira-users" href="#">Delete</a></li>
                        </ul>
                    </td>
                </tr>
                <tr>
                    <td>
                        <h5>Manage Group Filter Subscriptions</h5>
                        Ability to manage (create and delete) group filter subscriptions.
                    </td>
                    <td>
                        <ul class="operations-list">
                            <li>jira-developers</li>  
                            <li><a href="#">View Users</a></li>
                            <li><a id="del_24_jira-developers" href="#">Delete</a></li>
                        </ul>
                    </td>
                </tr>
                <tr>
                    <td>
                        <h5>Bulk Change</h5>
                        Ability to modify a collection of issues at once. For example, resolve multiple issues in one step.
                    </td>
                    <td>
                        <ul class="operations-list">     
                            <li>jira-users</li>
                            <li><a href="#">View Users</a></li>
                            <li><a id="del_33_jira-users" href="#">Delete</a></li>
                        </ul> 
                    </td>
                </tr>
            </tbody>
        </table>
        <div class="module">  
            <div class="mod-content">
                <form action="" method="post" name="jiraform" onsubmit="if (this.submitted) return false; this.submitted = true; return true"  >
	                <table class="jiraform maxWidth">
	                    <tr class="titlerow">
		                    <td colspan="2" class="jiraformheader">
                                <h3 class="formtitle">Add Permission</h3>
                            </td>
	                    </tr>
                        <tr class="hidden"><td colspan="2"></td></tr>
	                    <tr>
		                    <td class="fieldLabelArea"> Permission </td>
                            <td class="fieldValueArea" >
                                <select name="permType" id="permType_select">
                                    <option value="-1"> Please select a permission </option>
                                    <option value="44"> JIRA System Administrators </option>
                                    <option value="0"> JIRA Administrators</option>
	                                <option value="1"> JIRA Users </option>
	                                <option value="27"> Browse Users </option>
	                                <option value="22" > Create Shared Objects </option>
	                                <option value="24"> Manage Group Filter Subscriptions </option>
	                                <option value="33" > Bulk Change </option>
                                </select>
                                <span class="selectDescription" id="permType_summary"></span>
	                        </td>
                        </tr>
	                    <tr>
		                    <td class="fieldLabelArea">
			                    Group
		                    </td>
	                        <td class="fieldValueArea" >
                                <select name="groupName" id="groupName_select" >
                                    <option value="">Anyone</option>
                                    <option value="jira-administrators" > 
                                        jira-administrators
                                    </option>
	                                <option value="jira-developers">
                                        jira-developers
                                    </option>
	                                <option value="jira-users" >
                                        jira-users
                                    </option>
                                </select>
                                <span class="selectDescription" id="groupName_summary"></span>
	                        </td>
                        </tr>
	                    <tr class="buttons-container">
                            <td class="jiraformfooter">&nbsp;</td>
                            <td colspan="1">
                                <div class="buttons-container">
                                    <div class="buttons">
                                        <input type="submit" name="Add" value="Add" id="addpermission_submit" accesskey="s" title="Press Alt+Shift+s to submit form" class="aui-button " />
                                    </div>
                                </div>
		                    </td>
	                    </tr>
	                </table>
                </form>
            </div>
        </div>
    </div>
  </div>
</section>

